//
//  UserObj.h
//  seer
//
//  Created by Lin Eidan on 14-5-28.
//  Copyright (c) 2014年 haomee. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MyLevel.h"

#define DefaultUserName             @"魁拔"
#define DefaultUserHeaderId         @"1"
#define DefaultUserHeaderPic        @"default_profile_photo"
#define DefaultUserCampId           @"1"
#define DefaultUserCampPic          @"default_cover_photo"
#define BindQQPfIndex               @"1"
#define BindSinaPfIndex             @"2"

@interface UserObj : NSObject

@property (nonatomic, strong) NSString *uid;
@property (nonatomic, strong) NSString *username;
@property (nonatomic, strong) NSString *accessKey;
@property (nonatomic, strong) NSString *phoneNum;
@property (strong, nonatomic) NSString *headPicSrc;  //头像地址。
@property (strong, nonatomic) NSString *headId;
@property (strong, nonatomic) NSString *campPicSrc;
@property (strong, nonatomic) NSString *campId;  //阵营ID

//wenYao
@property (strong, nonatomic) NSArray *medalsDisplayArray;
@property (assign, nonatomic) int medalCount;
@property (assign,nonatomic) int lastMedalCount;

//sys
@property (assign, nonatomic) int sysMessageCount;
@property (assign, nonatomic) int lastSysMessageCount;

//VIP data
@property (strong, nonatomic) NSString *vipStartDate;
@property (strong, nonatomic) NSString *vipOverData;

@property (assign, nonatomic) int coins;


//第三方
@property (strong, nonatomic) NSString *qqId;  //未绑定为 0
@property (strong, nonatomic) NSString *qqNickName;

@property (strong, nonatomic) NSString *sinaId; //未绑定为 0
@property (strong, nonatomic) NSString *sinaNickName;

//第三方需要传给服务器，不用存在本地的。
@property (nonatomic, copy) NSString *thridPlatform;  // 1 qq  2 sina
@property (nonatomic, copy) NSString *thridPlatformID;  
@property (nonatomic, copy) NSString *thridAccountName;


@property (assign, nonatomic) BOOL isLogin;
@property (nonatomic, assign) BOOL isVip;


+ (UserObj *)sharedInstance;

-(BOOL)isLegalLogin;
-(BOOL)isLegalVip;
-(void)logout;


-(void)firstInstallAPPHandle;
-(void)saveUserToLocal;


@end

